package com.springboot.framework.controller.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.springboot.framework.dao.entity.OrderDetail;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Author SWF
 * @Date 2019/6/10 14:49
 **/
@Data
public class OrderCreateBean {


    @NotNull(message = "参数错误")
    private String userWechatOpenid;

    /** 店铺id */
    @NotNull(message = "参数错误")
    private Integer shopId;

    /** 买家姓名 */
    @NotEmpty(message = "参数错误")
    private String userName;

    /** 买家手机号 */
    @NotEmpty(message = "参数错误")
    private String userPhone;

    /** 买家地址 */
    @NotEmpty(message = "参数错误")
    private String userAddress;

    /** 备注 */
    private String remark;

    /** 用户优惠券id */
    private Integer userCouponsId;

    @NotNull(message = "参数错误")
    private List<OrderDetailBean> orderDetailBeans;

}
